﻿/***************************************************
 * File name: Address.cs 
 * Author: Team A
 * Change Log: Please see SVN repository: http://test-project-drew1.googlecode.com/svn/trunk/
 * Date: December 2013
 * Description: See <summary> tab below
 * *************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Globalization;
using WSCeCommerce.Domain;



namespace WSCeCommerce.Domain
{
    /// <summary>
    /// Represents a user's or shipping address
    /// </summary>
    public class Address
    {
        /// <summary>
        /// ID to use in the database
        /// </summary>
        
        public int AddressId
        {
            get;
            set;
        }

        /// <summary>
        /// City: Example Toronto
        /// </summary>
        [Required]
        [Display(Name = "City")]
        public String City
        {
            get;
            set;
        }

        /// <summary>
        /// Country: Example Canada
        /// </summary>

        public String Country
        {
            get;
            set;
        }

        /// <summary>
        /// Zip or Postal code: Example N2G 1L8
        /// </summary>
        [Required]
        [Display(Name = "Zip Code")]
        public String Zip
        {
            get;
            set;
        }

        /// <summary>
        /// Address Line1: Example: 99 Hicherson Drive
        /// </summary>
        [Required]
        [Display(Name = "Address Line 1")]
        public String AddressLine1
        {
            get;
            set;
        }

        /// <summary>
        /// Address Line2: Example Suite 899
        /// </summary>
        public String AddressLine2
        {
            get;
            set;
        }

        /// <summary>
        /// Type of Adress: {Home,Office,Appartment,etc...}
        /// </summary>
        [Required]
        public AddressType AddressType
        {
            get;
            set;
        }
    }
}
